package com.idp.web.test.service.impl;
import com.idp.web.test.service.OrderStatusService;
import com.idp.web.test.dao.OrderStatusDao;
import com.idp.web.test.entity.OrderStatus;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.idp.common.persistence.Page;
import com.idp.common.util.ResourceUtils;

/**
 * 
 * 123123service实现类
 * 
 * <pre>
 * 	历史记录：
 * 	2017-06-02 Amber
 * 	新建文件
 * </pre>
 * 
 * @author 
 * <pre>
 * SD
 * 	Amber
 * PG
 *	Amber
 * UT
 *
 * MA
 * </pre>
 * @version $Rev$
 *
 * <p/> $Id$
 *
 */
@Service("orderStatusService")
public class OrderStatusServiceImpl implements OrderStatusService {

	@Resource
	private OrderStatusDao orderStatusDao;
	
	@Override
	public Page<OrderStatus> findByPage(OrderStatus orderStatus, Page<OrderStatus> page) {

		page.setResult(orderStatusDao.find(orderStatus, page));
		
		return page;
	}
	
	@Override
	public List<OrderStatus> findBySearch(OrderStatus orderStatus) {

		return orderStatusDao.find(orderStatus);
	}
	
	@Override
	public OrderStatus getById(Integer id) {

		return orderStatusDao.getById(id);
	}

	@Override
	public void add(OrderStatus orderStatus) {

		orderStatusDao.add(orderStatus);
	}
	
	@Override
	public void update(OrderStatus orderStatus) {

		orderStatusDao.update(orderStatus);
	}

	@Override
	public void delete(Integer id) {

		orderStatusDao.delete(id);
	}
 	
}